// Lang_05 [Streams].nova // The application class. class StreamsApp { // Application class's "main" function. public static void main( String[] args ) { // Ouput an input prompt. Stream.write( "Please enter a line of text >" ); // Input a line of text into a new String object. String str = Stream.readLine( ); // Output the string. Stream.write( "The line you entered was: " ); Stream.writeLine( str ); // Ouput an input prompt. Stream.write( "Please enter a character >" ); // Read the next character from the input stream. int i = Stream.read( ); // Output the Character. Stream.write( "The character you entered was: " ); Stream.writeLine( (char)i ); } }